package Projekt;

public class Attribute {
	//---Figur---
	//soldat = 1
	
	//Genbaeude
	//Muehle = 10
	//Holz = 11
	//Mine = 12
	//Hauptgebaeude = 13
	//Kaserne = 14
	
	
	//---Eigenschaft----
	//[0] = Staerke
	//[1] = defensiv
	//[2] = health

	
	
	
	private static int 
	//Einheiten
	soldat[] = new int[3],
	
	
	//Gebaeude
	muehle[] = new int[3],
	holz[] = new int[3],
	mine[] = new int[3],
	haupt[] = new int[3],
	kaserne[] = new int[3];

	
	public Attribute() {
		soldat[0]=60; soldat[1]=60; soldat[2]=100;
		
		
		muehle[0]=0; muehle[1]=2; muehle[2]=100;
		holz[0]=0; holz[1]=2; holz[2]=100;
		mine[0]=0; mine[1]=2; mine[2]=100;
		haupt[0]=80; haupt[1]=5; haupt[2]=100;
		kaserne[0]=80; kaserne[1]=3; kaserne[2]=100;
	}


	public static int get_Attribute(int typ, char attribute){
	
		int attribut = 0;
		
		switch(attribute){
			case 's':
				attribut = 0;
			case 'd':
				attribut = 1;
			case 'h':
				attribut = 2;
		}

		switch(typ){
//Truppen
			case 1:
				return soldat[attribut];
				
				
				
//Gebaeude
			case 10:
				return muehle[attribut];
			case 11:
				return holz[attribut];
			case 12:
				return mine[attribut];
			case 13:
				return haupt[attribut];
			case 14:
				return kaserne[attribut];
			default:
				return 1;
		}
		
		}
}
